home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Amiga Format CD 7
/
Amiga Format AFCD07 (Dec 1996, Issue 91).iso
/
serious
/
shareware
/
programming
/
aros
/
c
/
helloworld.c
< prev
next >
Wrap
C/C++ Source or Header
|
1996-09-12
|
744b
|
33 lines
/*
(C) 1995-96 AROS - The Amiga Replacement OS
$Id: helloworld.c,v 1.2 1996/08/01 17:40:44 digulla Exp $
$Log: helloworld.c,v $
Revision 1.2 1996/08/01 17:40:44 digulla
Added standard header for all files
Desc:
Lang:
*/
#include <exec/libraries.h>
#include <clib/exec_protos.h>
#include <dos/dos.h>
#include <clib/dos_protos.h>
struct ExecBase *SysBase;
struct DosLibrary *DOSBase;
__AROS_LH0(LONG,entry,struct ExecBase *,sysbase,,)
{
__AROS_FUNC_INIT
SysBase=sysbase;
DOSBase=(struct DosLibrary *)OpenLibrary("dos.library",39);
if(DOSBase!=NULL)
{
Write(Output(),"hello, world\n",13);
CloseLibrary((struct Library *)DOSBase);
}
return 0;
__AROS_FUNC_EXIT
}